package com.yang.mall.vo;

import com.yang.mall.entity.Product;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hx
 * @Date 2021/6/25 10:23
 */
@Data
public class ProductVO extends Product implements Serializable {

    private String sortName;
    @ApiModelProperty(value = "商品详情Id")
    private Long id;

    @ApiModelProperty(value = "租户code")
    private String tenantCode;

    @ApiModelProperty(value = "经销商分成:0-80%")
    private Integer dealerShare;

    @ApiModelProperty(value = "达人分成:0-80%")
    private Integer talentsShare;

    @ApiModelProperty(value = "每人限购")
    private Integer maxPurchase;

    @ApiModelProperty(value = "每人起购")
    private Integer minPurchase;

    @ApiModelProperty(value = "加购数")
    private Integer addPurchase;

    @ApiModelProperty(value = "业务员分佣(百分比)")
    private BigDecimal salesSharePercent;

    @ApiModelProperty(value = "业务员分佣(指定金额)")
    private BigDecimal salesShareAppoint;

    @ApiModelProperty(value = "业务员分佣 1: 百分比 2: 指定金额")
    private Integer salesShareType;
}
